<% if @word_pages.length > 1 then  %>
    <div class="pagination">
    <%= if !@word_pages.current.first? then link_to "&lt; Prev", :page=>@word_pages.current.previous else "&lt; Prev" end  %>
    <%= pagination_links(@word_pages) %>
    <%= if !@word_pages.current.last? then link_to "Next &gt;", :page=>@word_pages.current.next else "Next &gt;" end %>
    </div>
<% end %>